package com.hailiang.study.javase.java.util.stream.vo;

public class Student {
    private int id;
    private int age;
    private String name;
    private String sex;
    private boolean isPass;

    public Student(int id, int age, String name, String sex, boolean isPass) {
        this.id = id;
        this.age = age;
        this.name = name;
        this.sex = sex;
        this.isPass = isPass;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public boolean isPass() {
        return isPass;
    }

    public void setPass(boolean pass) {
        isPass = pass;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", age=" + age +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", isPass=" + isPass +
                '}';
    }
}
